package com.example.ormsqlsplicingframe1.sql;

import java.util.Collection;
import java.util.function.Consumer;

/**
 * ( and    or    )
 *  id = sda and id= = 22  and ()
 */
public interface ConditionSql extends Sql {

    ConditionSql sql(String sql);

    ConditionSql eq(String name,Object value);

    ConditionSql ne(String name,Object value);


    ConditionSql like(String name,Object value);

    ConditionSql leftLike(String name,Object value);

    ConditionSql rightLike(String name,Object value);

    ConditionSql in(String name, Collection value);

    ConditionSql or(Consumer<ConditionSql> consumer);



}
